
package com.be.beadmin.material.repository;

import com.be.beadmin.material.entity.PickingReccieveDetails;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author zmy
* @date 2023-05-14
**/
public interface PickingReccieveDetailsRepository extends JpaRepository<PickingReccieveDetails, String>, JpaSpecificationExecutor<PickingReccieveDetails> {

    PickingReccieveDetails findPickingReccieveDetailsByIdAndDelete(String id, Integer delete);

    PickingReccieveDetails findPickingReccieveDetailsById(String id);

    PickingReccieveDetails findPickingReccieveDetailsByMaterialCodeAndPickingNoAndDelete(String mCode,String pickingNo,Integer delete);

    List<PickingReccieveDetails> findPickingReccieveDetailsByProductCodeAndDelete(String productCode, Integer delete);
}